package com.itheima01;
        //导入包
import java.util.Scanner;

public class Demo02Scanner {
    public static void main(String[] args) {
        //创建对象
        Scanner sc = new Scanner(System.in);
        //输入提示
        System.out.print("请输入一个是整数：");
        //键盘输入整数
        int i = sc.nextInt();
        System.out.println("您输入的整数是："+i);
        //输入提示
        System.out.print("请输入一个是字符串：");
        String s = sc.next();

        //输出语句
        System.out.print("您输入的字符串是："+s);

    }
}
